/* ===============================
   IMAGE CAROUSEL CARD
================================= */
.images-carousel-card {
    width: 100%;
    max-width: 100%;

    border-radius: 12px;
    padding: 24px 2rem;
    background: rgba(248, 231, 192, 0.4);
    overflow: hidden;

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.65),
        0 5px 15px rgba(0, 0, 0, 0.45);
         backdrop-filter: blur(5px);            /* ← dit toevoegen */
    -webkit-backdrop-filter: blur(5px);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.images-carousel-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 35px rgba(0, 0, 0, 0.8),
        0 8px 20px rgba(0, 0, 0, 0.6);
}

/* ===============================
   SPLIT: TEKST LINKS / CAROUSEL RECHTS
================================= */
.carousel-card-content {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap; /* mobiel: items onder elkaar */
}

/* Tekst links */
.carousel-text {
    flex: 1 1 300px; /* flexibel minimum 300px */
}

.carousel-text h3 {
    margin-bottom: 0.75rem;
    color: rgb(170, 140, 60);
    font-size: 1.4rem; 
    margin-top: 20px;
}

.carousel-text p {
    line-height: 1.6;
    color: #3A2A1A;
    font-size: 1rem; /* 16px basis */
    
}

/* ===============================
   CAROUSEL CONTAINER
================================= */
.carousel {
    flex: 1 1 300px; /* flexibel voor desktop en mobiel */
    position: relative;
    width: 100%;
    height: auto;

    perspective: 1200px;
    transform-style: preserve-3d;

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.65),
        0 5px 15px rgba(0, 0, 0, 0.45);

    border-radius: 12px;
    overflow: hidden;
         backdrop-filter: blur(5px);            /* ← dit toevoegen */
    -webkit-backdrop-filter: blur(5px);
}

/* ================
   CAROUSEL IMAGES 
=================== */
.carousel img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transform: rotateY(70deg) translateZ(-80px) scale(0.9);
    transform-origin: center center;

    transition:
        transform 0.9s ease,
        opacity 0.6s ease;

    backface-visibility: hidden;
    border-radius: 12px;
}

/* Actieve afbeelding */
.carousel img.active {
    position: relative;
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    z-index: 2;
}

/* Wegdraaiende afbeelding */
.carousel img.exit {
    opacity: 0;
    transform: rotateY(-90deg) scale(0.95);
    z-index: 1;
}

/* ===============================
   MOBIEL RESPONSIVE
================================= */
@media (max-width: 768px) {

    .carousel-card-content {
        display: flex;
        flex-direction: column; /* afbeelding boven tekst */
        align-items: center;
        gap: 1.5rem;
      width: 100%;
    }

    /* Afbeelding wrapper */
    .images-carousel-card {
        display: flex;
        justify-content: center;
        align-items: center;
        width: calc(100% - 1.5rem); 
        padding: 0.5rem 0.5rem; /* hier padding links & rechts voor de afbeelding */
        box-sizing: border-box;
        margin-left: 0.75rem;
       margin-right: 0.75rem;
             backdrop-filter: blur(5px);          
    -webkit-backdrop-filter: blur(5px);
    }

    .carousel {
        display: flex;
        flex-direction: column;
        align-items: center; /* afbeelding gecentreerd */
        justify-content: center;
        width: auto;      
        max-width: 100%;  
        height: auto;
    }

    .carousel img {
        max-width: 100%; 
        height: auto;    
        object-fit: contain;
        display: block;
        margin: 0; /* centering al gedaan in wrapper */
        padding-left: 0.5rem;  /* extra padding links */
        padding-right: 0.5rem; /* extra padding rechts */
    }

    /* Tekst styling */
    .carousel-text {
        flex: 1 1 auto;
        width: 100%;
        text-align: left;        
        padding-left: 1.5rem; /* iets meer links voor de tekst */
        padding-right: 1rem;  /* optioneel: rechtsruimte */
        box-sizing: border-box;
    }

    .carousel-text h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .carousel-text p {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
}